l108/opdracht auteurdetails/boeken.php

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link rel="stylesheet" type="text/css" href="menustyle.css"> </head> <body> <h2>Boeken: </h2><br> <div id="students"> <?php include "../db.php"; include "../functions.php"; $result = mysqli_query($db, "SELECT titel, boeknr FROM boeken"); for($i = 0; $i < mysqli_num_rows($result); $i++){ $values = mysqli_fetch_row($result); echo "<a href=boekinfo.php?boeknr=$values[1]>$values[0]</a><br>"; } ?> </div> </body> </html>

Resultaat

Made by Thijs Aarnoudse